/*
package c05_set_hashset;

import java.util.HashSet;
import java.util.TreeMap;
import java.util.TreeSet;

public class Test3 {
    public static void main(String[] args) {
        TreeSet<Student1> students = new TreeSet<>();
        
        Student1 s1 = new Student("张三", 18,100);
        Student1 s2 = new Student("李四", 18,99);
        Student1 s3 = new Student("王五", 18,98);
        students.add(s1);
        students.add(s2);
        students.add(s3);
        System.out.println(students);
        TreeSet<Student1> students2 = new TreeSet<>((a, b) -> Double.compare(a.getScore(), b.getScore()));
        for (Student1 student : students) {
            System.out.println(student);
        }
    }
}
*/
